<template>
<!-- 封面 -->
  <div class="media-info">
    <div class="media-info-content">
      <!-- 封面图 -->
      <div class="media-info-cover">
        <el-image style="width:225px;height:300px" :src="bangumiDetails.img"></el-image>
      </div>
      <!-- 番剧详情 -->
      <div class="media-info-details">
        <span class="media-info-details-title">{{bangumiDetails.name}}</span>
        <div class="media-info-details-episode">
          全 {{bangumiDetails.episode}} 话
        </div>
        <div class="media-info-details-intro">
          简介：{{bangumiDetails.intros}}
        </div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  data () {
    return {}
  },
  props: ['bangumiDetails'],
}
</script>
<style scoped>
.media-info {
  width: 100%;
  background: #787878;
}
.media-info-content {
  width: 80%;
  margin: 0 auto;
  background: #787878;
  padding: 20px 0;
  min-width: 540px;
}
/* 封面插图 */
.media-info-cover {
  box-sizing: border-box;
  position: relative;
  border: 4px solid #fff;
  border-radius: 8px;
  overflow: hidden;
  display: block;
  width: 225px;
  height: 300px;
  margin-right: 20px;
  float: left;
}
/* 右侧信息 */
.media-info-details {
  position: relative;
  overflow: hidden;
  min-height: 300px;
}
/* 标题 */
.media-info-details .media-info-details-title {
  font-family: Microsoft Yahei;
  padding-left: 20px;
  display: inline-block;
  font-size: 20px;
  line-height: 22px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  -o-text-overflow: ellipsis;
  text-overflow: ellipsis;
}
/* 章节数 */
.media-info-details-episode {
  margin-top: 28px;
  height: 17px;
  line-height: 17px;
  font-size: 12px;
  color: #fff;
  padding-left: 20px;
}
/* 简介 */
.media-info-details-intro {
  margin-top: 20px;
  font-size: 12px;
  color: #fff;
  line-height: 20px;
  min-height: 87px;
  padding-left: 20px;
}
</style>